package com.cy.pj.goods.pojo;
//定义Goods对象，用于封装从数据库查询到的商品信息


import lombok.Data;


import java.util.Date;



//@Setter
//@Getter
//@ToString
//@Data//相当于@Setter+@Getter+@ToString+...
//@NoArgsConstructor//添加无参构造函数
//@AllArgsConstructor//添加全参构造函数

public class Goods {
    private Long id;
    private String name;
    private String remark;
    private Date createdTime;




    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    public String toString() {
        return "Goods[id="+id+",name="+name+",remark="+remark
                +",createdTime="+createdTime+"]";
    }
}
